#ifndef __HELPER_H__
#define _HELPER_H__
#include <memory>
#include <mutex>
#include <stdio.h>
#include <stdarg.h>
#include "../jsonconfig/jsonconfig.h"
namespace Helper
{
    void log(const char *file, int level, const char *str, ...);
    void setup(BridgeConfig &cfg);
    /**
     * @brief 调试设置
     * 
     */
    struct 
    {
        bool dbgen;     /*控制台显示开关*/
        bool logen;     /*日志开关*/
        int dbglevel;   /*调试输出级别*/
        int loglevel;   /*日志记录级别*/
    }dbgcfg;
}
#endif